﻿@model CSF.Customers.Data.CustomerContact
@using (Html.BeginForm())
{  
    <div id="container">
        <div id="formStyle">
            <fieldset>
                <legend></legend>
                @Html.ValidationSummary(true)
                <p>
                    <label>
                        Customer</label>
                    @Html.DropDownListFor(m => m.CustomerId, ViewData["CustomerList"] as IEnumerable<SelectListItem>, "--please select--", new { style = "width:200px" })
                    @Html.ValidationMessageFor(model => model.ContactTypeCode)
                </p>
                <p>
                    <label>
                        Contact Type</label>
                    @Html.DropDownListFor(m => m.ContactTypeCode, ViewData["ContactTypeList"] as IEnumerable<SelectListItem>, "--please select--", new { style = "width:200px" })
                    @Html.ValidationMessageFor(model => model.ContactTypeCode)
                </p>
                <p>
                    <label>
                        Nick Name</label>
                    @Html.TextBoxFor(model => model.NickName)
                    @Html.ValidationMessageFor(model => model.NickName)
                </p>
                <p>
                    <label>
                        Full Name</label>
                    @Html.TextBoxFor(model => model.FullName)
                    @Html.ValidationMessageFor(model => model.FullName)
                </p>
                <p>
                    <label>
                        Email</label>
                    @Html.TextBoxFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </p>
                <p>
                    <label>
                        Phone</label>
                    @Html.TextBoxFor(model => model.Phone)
                    @Html.ValidationMessageFor(model => model.Phone)
                </p>
                <p>
                    <label>
                        Mobile</label>
                    @Html.TextBoxFor(model => model.Mobile)
                    @Html.ValidationMessageFor(model => model.Mobile)
                </p>
                <p>
                    @Html.ActionLink("Back to List", "Index")
                </p>
            </fieldset>
            <fieldset>
                <legend></legend>
            </fieldset>
            <p class="submit">
                <button type="submit">
                    Create</button></p>
        </div>
    </div>
  
}